#!/bin/bash -e

function info() {
echo Usage: `basename $0` files
exit 2
}

while getopts  ":l:p:f:" opts
do
        case  $opts  in
        l) lines=$OPTARG;;
		p) out_prefix=$OPTARG;;
		f) suffix=$OPTARG;;
		?) info;;
        esac
done
shift $(($OPTIND - 1))


if [ $# -lt 1 ]; then info; fi

. $var

for fil; do
if test -e $fil; then
	ln -fs $fil $out_prefix.$fil
fi
done

. $cmd_done